public class Admin extends Person {
    public String address;
    private String department;

    public Admin(String address, String department) {
        super();
        super.address = address;
        this.department = department;
    }

    @Override
    public void work() {
        // 调用父类的work方法
        System.out.println("在" + department + "部门处理行政事务");
    }
}

